<Widget:show bdcls="no-padding" title="我的内容列表" col="12">
    <Widget:action id="modelObj-action" title="">
    &nbsp;&nbsp;
        <a ajax-dialog class="btn blue" href="{$addUrl}" >新增</a>
        <a grid-btn class="btn blue disabled" href="{$editUrl}" >修改</a>
        <a grid-btn data-delete class="btn btn-danger disabled" href="{$delUrl}" >删除</a>
    </Widget:action>
    <Widget:action title="">
        <select name="pageid" class="form-control input-sm">
            <option value="">所有</option>
        <volist name="pages" id="p">
            <option value="{$p.id}">{$p.name}</option>
        </volist>
        </select>

    </Widget:action>
    <div class="table-responsive">
        <table id="modelObj" class="table table-bordered">
            <thead>
            <th w_index="title">标题</th>
            <th w_index="hits">点击</th>
            <th w_index="top">置顶级别</th>
            <th w_index="status_txt">状态</th>
            <th w_index="ctime">创建时间</th>
            </thead>
        </table>
    </div>
    <div id="modelObj-pager" class="widget-footer">
          
    </div>
</Widget:show>
<include file="Common/tablejs" table="modelObj" rows="10" />
<script type="text/javascript">
$(function(){
    $('select[name=pageid]').on('change',function(){
        var pageid = $(this).val();
        var url = modelObj.options.settings.url;
        url = U('pageid',pageid,url);
        modelObj.options.settings.url = url;
        modelObj.page(1);
    })
})    
</script>